///*
// * Tencent is pleased to support the open source community by making wechat-matrix available.
// * Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
// * Licensed under the BSD 3-Clause License (the "License");
// * you may not use this file except in compliance with the License.
// * You may obtain a copy of the License at
// *
// *      https://opensource.org/licenses/BSD-3-Clause
// *
// * Unless required by applicable law or agreed to in writing,
// * software distributed under the License is distributed on an "AS IS" BASIS,
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// * See the License for the specific language governing permissions and
// * limitations under the License.
// */
//
//package com.example.myapplication.track;
//
//import android.app.Activity;
//import android.content.Intent;
//import android.net.Uri;
//import android.os.Build;
//import android.os.Bundle;
//import android.os.Debug;
//import android.os.SystemClock;
//import android.provider.Settings;
//import android.util.Log;
//import android.view.View;
//import android.widget.Toast;
//
//import androidx.annotation.Nullable;
//
//import com.example.myapplication.R;
//import com.tencent.matrix.AppActiveMatrixDelegate;
//import com.tencent.matrix.Matrix;
//import com.tencent.matrix.listeners.IAppForeground;
//import com.tencent.matrix.plugin.Plugin;
//import com.tencent.matrix.trace.TracePlugin;
//import com.tencent.matrix.trace.core.AppMethodBeat;
//import com.tencent.matrix.trace.view.FrameDecorator;
//import com.tencent.matrix.util.MatrixLog;
//
//public class TestTraceMainActivity extends Activity {
//    private static String TAG = "Matrix.TestTraceMainActivity";
//    FrameDecorator decorator;
//    private static final int PERMISSION_REQUEST_CODE = 0x02;
//
//    @Override
//    protected void onCreate(@Nullable Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.test_trace);
//
//    }
//
//
//
//    public void testEnter(View view) {
////        Intent intent = new Intent(this, TestEnterActivity.class);
////        startActivity(intent);
//    }
//
//    public void testFps(View view) {
////        Intent intent = new Intent(this, TestFpsActivity.class);
////        startActivity(intent);
////        overridePendingTransition(R.anim.slide_right_in, 0);
//    }
//
//    public void testJankiess(View view) {
//        A();
//    }
//
//
//    public void testANR(final View view) {
//       /* for (long i = 0; i < 1l; i++) {
//            testInnerSleep();
//        }*/
//        A();
//    }
//
//    private void A() {
//        B();
//        L();
//        SystemClock.sleep(800);
//    }
//
//    private void B() {
//
//        SystemClock.sleep(200);
//    }
//
//
//
//    private void L() {
//        SystemClock.sleep(10000);
//    }
//
//
//}
